Skip to main content

[JS] this keyword

info

The call() method takes arguments separately.

The apply() method takes arguments as an array.

call & apply & bind
fun.call(thisArg[, arg1[, arg2[, ...]]])

fun.apply(thisArg, [argsArray])

fun.bind(thisArg[, arg1[, arg2[, ...]]])